package lumis.service.chatroom;

import lumis.collaboration.chat.ChatConversationConfig;
import lumis.content.service.ContentServiceInterface;
import lumis.portal.PortalException;
import lumis.portal.serviceinterface.IServiceInterfaceRenderRequest;
import lumis.portal.serviceinterface.IServiceInterfaceRenderResponse;
import lumis.portal.serviceinterface.ServiceInterfaceException;

/**
 * 
 * Only allow to render the interface if it is open.
 *
 * @version $Revision: 8896 $ $Date: 2008-02-19 12:57:12 -0300 (Tue, 19 Feb 2008) $
 * @since 4.0.11
 */
public class ChatRoomParticipateInterface extends ContentServiceInterface
{
	@Override
	public void render(IServiceInterfaceRenderRequest request, IServiceInterfaceRenderResponse response) throws ServiceInterfaceException, PortalException
	{
		if(ChatConversationConfig.CHAT_CONVERSATION_STATE_ACTIVE == ChatRoomUtil.getChatRoomConversationState(request))
			super.render(request, response);
	}
}
